import { SmileOutlined, DownOutlined } from '@ant-design/icons-vue';
  import { onMounted,ref } from 'vue';
  import {getList} from '@/api/cateList/list'
  export const columns = [
    {
      name: '分类',
      dataIndex: 'name',
      key: 'name',
    },
    {
      title: '排序',
      dataIndex: 'sort',
      key: 'sort',
    },
    {
      title: '状态',
      key: 'status',
      dataIndex: 'status',
    },
    {
      title: '操作',
      key: 'action',
    },
  ];
  
  const data = ref([])
   
  let dx=ref([])
  function methodsGet(){
    getList().then((res:any)=>{
    console.log(res)
    data.value=res
    dx.value=res
})
  }
  export function zdygz(){
    onMounted(()=>{
        methodsGet()
      })
      return{
        data,
        methodsGet
      }
  }
